package 变换函数Map

fun main() {
    val animals = listOf("zebra", "giraffe", "elephant", "rat")
    val babies = animals.map {
        "A baby $it"
    }.map {
        "$it,with the cutest little tail ever!"
    }
    println(animals)
    println(babies)
}